home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_camreflec.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  102 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_CamReflec.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     user0
  13.     message     user1
  14.     message     entered
  15.     
  16.     thing       player      local
  17.     thing       car         local
  18.     
  19.     thing       cam1
  20.     thing       cam2
  21.     thing       cam3
  22.     
  23.     surface     trig1
  24.     surface     trig2
  25.     surface     trig3
  26.     surface     trig4
  27.     surface     switch3
  28.     
  29.     int         ready=1     local
  30.     
  31. end
  32.  
  33. # ========================================================================================
  34.  
  35. code
  36.  
  37. user0:
  38.  
  39.     #Print("CamReflec: shut down");
  40.     ready = 0;
  41.     return;
  42.  
  43. # ========================================================================================
  44.  
  45. user1:
  46.  
  47.     #Print("CamReflec: turn on");
  48.     ready = 1;
  49.     return;
  50.  
  51. # ========================================================================================
  52.  
  53. entered:
  54.  
  55.     player = GetLocalPlayerThing();
  56.     car = GetSourceRef();
  57.  
  58.     if((BitTest(GetPhysicsFlags(car), 0x01000000)) && (GetWallCel(switch3) == 1) && (ready == 1))
  59.     {
  60.         if(GetSenderRef() == trig1)
  61.         {
  62.             # disable player
  63.             StartCutscene(0);
  64.             SetActorFlags(player, 0x200000);
  65.             
  66.             # Cut to cam1
  67.             SetCameraFocus(2, cam1);
  68.             SetCameraSecondaryFocus(2, player);
  69.             SetCurrentCamera(2);
  70.         }
  71.             
  72.         if(GetSenderRef() == trig2)
  73.         {
  74.             # Cut to cam2
  75.             SetCameraFocus(2, cam2);
  76.             SetCameraSecondaryFocus(2, player);
  77.             SetCurrentCamera(2);
  78.         }
  79.         
  80.         if(GetSenderRef() == trig3)
  81.         {
  82.             # Cut to cam3
  83.             SetCameraFocus(2, cam3);
  84.             SetCameraSecondaryFocus(2, player);
  85.             SetCurrentCamera(2);
  86.         }
  87.         
  88.         if(GetSenderRef() == trig4)
  89.         {
  90.             SetCurrentCamera(1);
  91.             ClearActorFlags(player, 0x200000);
  92.             EndCutscene();
  93.         }
  94.     }
  95.         
  96.     return;
  97.        
  98. # ========================================================================================
  99.  
  100. end
  101.  
  102.